<template>
    <div id="main7"></div>
</template>

<script setup lang="ts">
import * as echarts from 'echarts';
import { onMounted } from "vue";

onMounted(()=>{
   var chartDom = document.getElementById('main7');
var myChart = echarts.init(chartDom);
var option;

option = {
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [820, 932, 901, 934, 1290, 1330, 1320],
      type: 'line',
      areaStyle: {}
    }
  ]
};

option && myChart.setOption(option);

window.addEventListener("resize",function(){
    myChart.resize();
})
})
</script>

<style scoped>
#main7{
    width: 100%;
    height: 100%;
}
</style>